package com.tql.kingdee.response;

public class ErrorInfo {
    //0正常，1异常
    private int flag;
    private String errorCode;
    private String message;
    /**
     {
     "Result": {
     "ResponseStatus": {
     "ErrorCode": 500,
     "IsSuccess": false,
     "Errors": [
     {
     "FieldName": null,
     "Message": "会话信息已丢失，请重新登录",
     "DIndex": 0
     }
     ],
     "SuccessEntitys": [],
     "SuccessMessages": [],
     "MsgCode": 1
     }
     }
     }
     */


    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ErrorInfo() {
    }

    public ErrorInfo(int flag, String errorCode, String message) {
        this.flag = flag;
        this.errorCode = errorCode;
        this.message = message;
    }
}
